/**
 * 
 */
package common;

import java.util.ArrayList;

/**
 * @author vladimir
 * 
 */
public class Todouble {
	public double[] todouble(Double[] input) {
		double[] result = new double[input.length];

		for (int i = 0; i < input.length; i++) {
			result[i] = (double) input[i];
		}
		return result;
	}

	public static double[] todouble(ArrayList<Double> input) {
		double[] result = new double[input.size()];

		for (int i = 0; i < input.size(); i++) {
			result[i] = (double) input.get(i);
		}
		return result;
	}
}
